package newWork.service.impl;

import newWork.dao.IClientDao;
import newWork.entity.ClientEntity;
import newWork.service.IClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClientService implements IClientService {


    private IClientDao dao;

    @Autowired
    public ClientService(IClientDao dao) {
        this.dao = dao;
    }

    @Override
    public void add(ClientEntity entity) {
        dao.add(entity);
    }

    @Override
    public void delete(ClientEntity entity) {
        dao.delete(entity);
    }

    @Override
    public void update(ClientEntity entity) {
        dao.update(entity);
    }

    @Override
    public List<ClientEntity> select(ClientEntity entity) {
        return dao.select(entity);
    }

    @Override
    public Long likeSelectCount(ClientEntity entity) {
        return dao.likeSelectCount(entity);
    }

}
